package com.wad.manager.mapper;

import com.wad.dto.system.SysUserDto;
import com.wad.entity.system.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author wad
 * @date 2023/11/29 14:14
 * @project e-commerce
 **/

@Mapper
public interface SysUserMapper {
    SysUser selectUserInfoByUserName(@Param("userName") String userName);

    List<SysUser> findByPage(SysUserDto sysUserDto);

    void save(SysUser sysUser);

    void update(SysUser sysUser);

    void delete(@Param("userId") Long userId);
}
